package org.budo.beetl.spring;

import javax.annotation.PostConstruct;

import org.beetl.ext.spring.BeetlGroupUtilConfiguration;
import org.springframework.core.io.ByteArrayResource;

/**
 * @author limingwei
 */
public class BudoBeetlGroupUtilConfiguration extends BeetlGroupUtilConfiguration {
    private static final String CONFIG_FILE_RESOURCE = "DELIMITER_STATEMENT_START=<!--:\r\n" //
            + "DELIMITER_STATEMENT_END=-->\r\n" //
            + "FT.dateFormat = org.budo.beetl.format.BudoBeetlDateFormat\r\n" //
            + "FN.i18n=org.budo.beetl.function.I18nFunction\r\n" //
            + "TAG.deferWrite=org.budo.beetl.tag.defer.write.DeferWriteTag\r\n" //
            + "TAG.renderFile=org.budo.beetl.tag.render.BudoRenderFileTag\r\n" //
            + "FNP.druidStat=org.budo.beetl.function.druid.stat.DruidStatFunctionPackage\r\n" //
            + "FNP.budo=org.budo.beetl.function.BeetlFunctionPackage\r\n" //
            + "FNP.sputil=org.beetl.ext.spring.UtilsFunctionPackage";

    /**
     * 设置一些默认值
     */
    public BudoBeetlGroupUtilConfiguration() {
        this.setConfigFileResource(new ByteArrayResource(CONFIG_FILE_RESOURCE.getBytes()));
    }

    @PostConstruct
    public void init() {
        super.init();
    }
}